import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';

class MenuController extends GetxController {
  GlobalKey<ScaffoldState> _homeScaffoldKey = new GlobalKey();
  GlobalKey<ScaffoldState> get homeScaffoldKey => _homeScaffoldKey;
  // 首页菜单选项
  List<String> _menuList = [
    "flutter",
    "vue",
    "小程序",
    "uniapp",
    "android",
    "ios"
  ];
  List<String> get menuList => _menuList;
  // 当前选中索引
  RxInt _currentSelectIndex = 0.obs;
  int get currentSelectIndex => _currentSelectIndex.value;
  void updateSelectIndex(int index) {
    _currentSelectIndex.value = index;
  }
}
